package com.sdwz.user.client;

import com.sdwz.commonutil.Result;
import com.sdwz.user.entity.BookInfo;
import com.sdwz.user.entity.vo.BookInfoVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-library")
@Repository
public interface LibraryClient {

        /**
         * 通过书名查询书籍
         * @param
         * @return
         */
        @GetMapping("/admin/library/book/client/{id}")
        public BookInfo getBook(@PathVariable("id") String id);
}
